package com.jxd.project.travel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jxd.project.travel.model.DictType;

import java.util.List;

public interface IDictTypeService extends IService<DictType> {

    //获取所有字典类型
    IPage<DictType> getAll(Page<DictType> page, String type);

    //删除字典类型及类型下数据
    boolean deleteType(int id);

    boolean checkDictionaryTypeExists(String type);
}
